﻿//接口
interface Person
{
    firstname: string;
    secondname: string;
}
//类
class student
{
    fullname: string;
    constructor(public firstname: string, public secondname: string)
    {
        this.fullname = firstname + secondname;
    }
}
function greeter(Person: Person)
{
    return "hello " + Person.firstname + " " + Person.secondname;
}
var usr = { firstname: "zh", secondname: "wane" };
var usr2 = new student("11", "22");
let b: boolean = false;
console.log(greeter(usr2));
